package com.open.capacity.forum.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.open.capacity.forum.model.Comment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CommentDto extends Comment {
    /**
     * 评论人昵称
     */
    private String criticName;
    /**
     * 评论人头像
     */
    private String criticAvatar;

    /**
     * 回复的评论人昵称
     */
    private String replyCriticName;

    /**
     * 点赞状态 - 当前登录用户是否对此评论进行过点赞
     */
    private Boolean praiseStatus;

    /**
     * 子级评论
     */
    @TableField(exist = false)
    private List<CommentDto> children;

}
